package cn.shangtour.common.vo;

public class DiaryResult {
	//表示状态码的数字
			private Integer status;
			//携带详细信息的字符串
			private String msg;
			//携带的各种数据
			private Object data;
			//准备一个封装数据的构造方法
			public DiaryResult(Integer status,String msg,Object data){
				this.status=status;
				this.msg=msg;
				this.data=data;
			}
			public DiaryResult(){
				
			}
			public static DiaryResult build(Integer status,String msg,Object data){
				return new DiaryResult(status, msg, data);
				}
			public static DiaryResult ok(){
				return new DiaryResult(200, "ok", null);
				}
			public Integer getStatus() {
				return status;
			}
			public void setStatus(Integer status) {
				this.status = status;
			}
			public String getMsg() {
				return msg;
			}
			public void setMsg(String msg) {
				this.msg = msg;
			}
			public Object getData() {
				return data;
			}
			public void setData(Object data) {
				this.data = data;
			}
			
			
}
